

# Disable in-source builds to prevent source tree corruption.
if("${CMAKE_CURRENT_SOURCE_DIR}" STREQUAL "${CMAKE_BINARY_DIR}")
  message(FATAL_ERROR "
FATAL: In-source builds are not allowed.
       You should create a separate directory for build files.
")
endif()


## ============================================================================
##  通过 FIND_PACKAGE(curlpp CONFIG REQUIRED )
## IF( EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/curlpp )
##	ADD_SUBDIRECTORY(${CMAKE_CURRENT_SOURCE_DIR}/curlpp)
## endif()

if("${CMAKE_CURRENT_SOURCE_DIR}" STREQUAL "${CMAKE_BINARY_DIR}")
	SET(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/Modules ${CMAKE_MODULE_PATH})
endif()


IF( EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/exthal )
	ADD_SUBDIRECTORY(${CMAKE_CURRENT_SOURCE_DIR}/exthal)
endif()


